﻿using System;
using System.Runtime.Serialization;

namespace EDTS.Model.Orgnizations
{
    [DataContract]
    public class GroupModel:MBase
    {
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public int UnitID { get; set; }
        [Model]
        [DataMember]
        public string FullName { get; set; }
        [Model]
        [DataMember]
        public int Sequence { get; set; }
        [Model]
        [DataMember]
        public bool Leader { get; set; }
    }

    public class GroupCollection : ModelCollectionBase<GroupModel> { }

    public class GroupQuery : QueryBase
    {
        public Guid UnitGuid { get; set; }
    }
}
